package com.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.web.entity.SysUser;
import com.web.service.SysUserService;

@Controller
@RequestMapping("UserPage")
public class PuPageController {

	@Autowired
	private SysUserService sysUserService;

	@RequestMapping("list")
	public String Userlist() {
		
		return "UserPage/classPage";
	}
	
	@ResponseBody
	@RequestMapping("/Userlist")
	private PageInfo<SysUser> list(SysUser sysUser,Integer pageNum,Integer pageSize) {
						
        return sysUserService.getListByPage(sysUser, pageNum, pageSize);
    }
}
